package com.example.securitydemos.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author linjy on 2023/1/12
 */
//@RestController
public class AuthorizationController_基于url授权 {
    //@GetMapping("/admin/hello")
    public String adminHello() {

        return "hello, admin";
    }

    //@GetMapping("/user/hello")
    public String userHello() {

        return "hello, user";
    }

    //@GetMapping("/visitor/hello")
    public String visitorHello() {

        return "hello, visitor";
    }

}
